﻿@model GameSchoolWeb.Models.RegisterModel
<div id="templatemo_content">
    @{
        ViewBag.Title = "Nýskrá notanda";
    }
    <div class="templatemo_box">
        <h2>
            Skrá nýjan notanda</h2>
        <div class="body">
            <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
            <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
            @using (Html.BeginForm())
            {
                @Html.ValidationSummary(true, "Ekki tókst að setja inn nýjan notanda. Vinsamlegast reyndu aftur.")
                <div>
                    <div class="editor-label">
                        Notendanafn
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.UserName)
                        @Html.ValidationMessageFor(m => m.UserName)
                    </div>
                    <div class="editor-label">
                        Vefpóstur
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.Email)
                        @Html.ValidationMessageFor(m => m.Email)
                    </div>
                    <div class="editor-label">
                        Lykilorð (amk @Membership.MinRequiredPasswordLength stafir)
                    </div>
                    <div class="editor-field">
                        @Html.PasswordFor(m => m.Password)
                        @Html.ValidationMessageFor(m => m.Password)
                    </div>
                    <div class="editor-label">
                        Staðfesta lykilorð
                    </div>
                    <div class="editor-field">
                        @Html.PasswordFor(m => m.ConfirmPassword)
                        @Html.ValidationMessageFor(m => m.ConfirmPassword)
                    </div>
                    <div class="editor-label">
                        Hlutverk
                    </div>
                    <div>
                        Sláðu inn "nemandi" , "kennari" eða "umsjonarmadur".
                    </div>
                    <div class="editor-field">
                        @Html.TextBoxFor(m => m.Roles)
                        @Html.ValidationMessageFor(m => m.Roles)
                    </div>
                    <p>
                        <input type="submit" value="Skrá" />
                    </p>
                    <hr />
                    @Html.ActionLink("Aftur á forsíðu", "Index", "Home")
                </div>
            }
        </div>
        <div class="box_bottom">
            <span></span>
        </div>
    </div>
</div>
